Xbasic
*TREE_FROM_OUTLINE Function
Syntax
Tree_Data as C = *TREE_FROM_OUTLINE(C outlinedef[,C outline_ident[,C separator[,L expandBranch]]])
Arguments
- Tree_Data
Data formatted for display in a tree control.
- outlinedef
A CR-LF delimited list indented with instances of Indent_String.
- outline_ident
Optional. Default = "" (8 spaces). A character that separates the "branches" in the tree data.
- separator
Optional. Default = ".". A character string that represents an indent level in the indented list.
- expandBranch
Logical
Description
Transform an outline string to a tree string.
Discussion
The *TREE_FROM_OUTLINE() function converts an indented list into data formatted for display in a tree control.
Example
dim outline as C ? outline = customer +orders ++items ++salespeople +payment ++checks Location +State ? *tree_from_outline(outline,"+",".") = customer.orders.items customer.orders.salespeople customer.payment.checks Location.State
See Also